import { Drawer, Button, Form, Radio } from 'antd'

import { useState } from 'react';
import Store from './store';
import StypeOne from './stype-one'

const UploadStory = () => {
  const [open, setOpen] = useState<boolean>(false)
  const [form] = Form.useForm();
  const handleClick = () => {
    setOpen((prevalue) => !open)
  }
  const handleClose = () => {
    setOpen((prevalue) => !open)
  }
  return (
    <>
      <Button onClick={handleClick}>小说上传</Button>

      <Drawer open={open} onClose={handleClose}>
        <Form form={form}>
          <StypeOne></StypeOne>
        </Form>
      </Drawer>
    </>
  )
}

export default () => (
  <Store.Provider>
    <UploadStory></UploadStory>
  </Store.Provider>
);